package com.travel.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author: libin
 * Date: 2025/6/16 15:42
 * Description:
 **/
@Data
@ApiModel(value = "TicketRegistration", description = "门票报名信息")
public class TravelRegistration {

    @ApiModelProperty(value = "报名记录ID", example = "123", readOnly = true)
    private Integer id;
    @ApiModelProperty(value = "产品ID", example = "1", required = true)
    private Integer productId;
    @ApiModelProperty(value = "用户id", example = "123", required = true)
    private Integer userId;

    @ApiModelProperty(value = "报名状态：1=待支付，2=已支付，3=已取消，4=已完成",example ="1")
    private Integer status;

    @ApiModelProperty(value = "报名人姓名", example = "张三", required = true)
    private String name;
    @ApiModelProperty(value = "订单号", example = "20230615100001001")
    private String orderNo;
    @ApiModelProperty(value = "联系电话", example = "13800138000", required = true)
    private String phone;

    @ApiModelProperty(value = "成人数量", example = "2", required = true)
    private Integer adultCount;

    @ApiModelProperty(value = "成人单价(元)", example = "150.00", required = true)
    private BigDecimal adultPrice;

    @ApiModelProperty(value = "儿童数量", example = "1", required = true)
    private Integer childCount;

    @ApiModelProperty(value = "儿童单价(元)", example = "80.00", required = true)
    private BigDecimal childPrice;

    @ApiModelProperty(value = "总价(元)", example = "380.00", required = true)
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "报名时间", example = "2023-06-15T10:30:00", readOnly = true)
    private LocalDateTime createTime;
}
